{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Sync discrepancies{% endblock %}
{% block content %}
    {% origin %}
    <h1>Sync discrepancies</h1>
    {% for title, docs in sections %}
        <h2>{{ title }}</h2>
        {% if docs %}
            <table class="table table-sm table-striped tablesorter">
                <thead>
                    <tr>
                        <th scope="col" data-sort="draft">Internet-Draft name</th>
                        <th scope="col" data-sort="iesg">IESG state</th>
                        <th scope="col" data-sort="rfc">RFC Editor state</th>
                        <th scope="col" data-sort="iana">IANA Action state</th>
                    </tr>
                </thead>
                <tbody>
                    {% for d in docs %}
                        <tr>
                            <td>
                                <a href="{{ d.get_absolute_url }}">{{ d.name }}</a>
                            </td>
                            <td>{{ d.iesg_state|default:"" }}</td>
                            <td>{{ d.rfc_state|default:"" }}</td>
                            <td>{{ d.iana_action_state|default:"" }}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        {% else %}
            <p class="text-body-secondary">
                (None)
            </p>
        {% endif %}
    {% endfor %}
{% endblock %}
{% block js %}
    <script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}